<?php
if (!defined("_INDEX")) { header("Location: /"); die; }

if ($user->getUserId() != 12 && $user->getUserId() != 1)
	goToPage();

switch ($route->getAdminAction())
{
	case "create": require_once ADMIN.DS."_rumors".DS."create.php"; break;
	case "edit": require_once ADMIN.DS."_rumors".DS."edit.php"; break;
	case "view": require_once ADMIN.DS."_rumors".DS."view.php"; break;
	case "delete": require_once ADMIN.DS."_rumors".DS."delete.php"; break;
	
	default: goToPage("/admin/rumors/view");
}

?>